package dk.eaaa.mobil2012.indkoebsappnyere;

import java.util.ArrayList;

public class InterimDAO {
	

	public static ArrayList<Product> products = new ArrayList<Product>();
	public static ShoppingList list;
	public static Product product;

	private Product product1 = new Product("Milk", Unit.L, 1, 12.5);
	private Product product2 = new Product("Beef", Unit.KG, 1, 12.5);
	private Product product3 = new Product("Lamb", Unit.KG, 1, 12.5);
	private Product product4 = new Product("Eggs", Unit.STK, 1, 12.5);
	private Product product5 = new Product("Cola", Unit.FL, 1, 12.5);
	private Product product6 = new Product("Chips", Unit.GR, 1, 12.5);
	private Product product7 = new Product("Chips", Unit.GR, 1, 12.5);
	
	public InterimDAO(){

		list = new ShoppingList();
		product = null;
		list.addProduct(product1);
		products.add(product1);
		products.add(product2);
		products.add(product3);
		products.add(product4);
		products.add(product5);
		products.add(product6);
		products.add(product7);

	}
	
	public static Product getProduct() {
		return product;
	}

	public static void setProduct(Product product) {
		InterimDAO.product = product;
	}
	
}
